package org.jeecg.modules.demo.tcc.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 平台信息表
 * @Author: jeecg-boot
 * @Date:   2022-01-17
 * @Version: V1.0
 */
@Data
@TableName("platform_detail_info")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="platform_detail_info对象", description="平台信息表")
public class PlatformDetailInfo implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private java.lang.String id;
	/**公司名称*/
	@Excel(name = "公司名称", width = 15)
    @ApiModelProperty(value = "公司名称")
    private java.lang.String platformName;
	/**平台编码*/
	@Excel(name = "平台编码", width = 15)
    @ApiModelProperty(value = "平台编码")
    private java.lang.String platformCode;
	/**国家地区*/
	@Excel(name = "国家地区", width = 15)
    @ApiModelProperty(value = "国家地区")
    private java.lang.String country;
	/**排名*/
	@Excel(name = "排名", width = 15)
    @ApiModelProperty(value = "排名")
    private java.lang.Integer ranking;
	/**是否实盘*/
	@Excel(name = "是否实盘", width = 15)
    private transient java.lang.String isRealPlatString;

    private byte[] isRealPlat;

    public byte[] getIsRealPlat(){
        if(isRealPlatString==null){
            return null;
        }
        try {
            return isRealPlatString.getBytes("UTF-8");
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
        return null;
    }

    public String getIsRealPlatString(){
        if(isRealPlat==null || isRealPlat.length==0){
            return "";
        }
        try {
            return new String(isRealPlat,"UTF-8");
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
        return "";
    }
	/**主营业务*/
	@Excel(name = "主营业务", width = 15)
    @ApiModelProperty(value = "主营业务")
    private java.lang.String mainBusiness;
	/**按天费用*/
	@Excel(name = "按天费用", width = 15)
    @ApiModelProperty(value = "按天费用")
    private java.lang.String feeDay;
	/**按月费用*/
	@Excel(name = "按月费用", width = 15)
    @ApiModelProperty(value = "按月费用")
    private java.lang.String feeMonth;
	/**最大杠杆*/
	@Excel(name = "最大杠杆", width = 15)
    @ApiModelProperty(value = "最大杠杆")
    private java.lang.String maxLeverage;
	/**最低入金*/
	@Excel(name = "最低入金", width = 15)
    @ApiModelProperty(value = "最低入金")
    private java.lang.String minPayment;
	/**成立时间*/
	@Excel(name = "成立时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "成立时间")
    private java.util.Date establishTime;
	/**综合评分*/
	@Excel(name = "综合评分", width = 15)
    @ApiModelProperty(value = "综合评分")
    private java.lang.Double totalScore;
	/**交易环境*/
	@Excel(name = "交易环境", width = 15)
    @ApiModelProperty(value = "交易环境")
    private java.lang.String tradeEnv;
	/**官网*/
	@Excel(name = "官网", width = 15)
    @ApiModelProperty(value = "官网")
    private java.lang.String officialWebsite;
	/**注册资本*/
	@Excel(name = "注册资本", width = 15)
    @ApiModelProperty(value = "注册资本")
    private java.lang.Integer registeredCapital;
	/**公司详情*/
	@Excel(name = "公司详情", width = 15)
    @ApiModelProperty(value = "公司详情")
    private java.lang.String platformInfo;
	/**运营状态*/
	@Excel(name = "运营状态", width = 15)
    @ApiModelProperty(value = "运营状态")
    private java.lang.String operationStatus;
	/**平台简称*/
	@Excel(name = "平台简称", width = 15)
    @ApiModelProperty(value = "平台简称")
    private java.lang.String platformAbbreviation;
	/**电话*/
	@Excel(name = "电话", width = 15)
    @ApiModelProperty(value = "电话")
    private java.lang.String phone;
	/**地址*/
	@Excel(name = "地址", width = 15)
    @ApiModelProperty(value = "地址")
    private java.lang.String address;
	/**邮箱*/
	@Excel(name = "邮箱", width = 15)
    @ApiModelProperty(value = "邮箱")
    private java.lang.String email;
	/**省份*/
	@Excel(name = "省份", width = 15)
    @ApiModelProperty(value = "省份")
    private java.lang.String province;
	/**是否有效*/
	@Excel(name = "是否有效", width = 15)
    @ApiModelProperty(value = "是否有效")
    private java.lang.String isValid;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private java.util.Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private java.lang.String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private java.util.Date updateTime;
}
